irb(main)> s = Struct.new(:a, :b, :c) => # irb(main)> s1 = s.new(1, 2, 3) => # irb(main)> s1.to_a => [1, 2, 3] irb(main)> a = s1.to_a => [1, 2, 3] irb(main)> s2 = s.new(*a) => #